package cn.tedu._05mvcboot03.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UserArticleDTO {
    @Size(min = 1, max = 20, message = "文章标题长度限定1~20个字符")
    @NotBlank(message = "标题不能为空")
    private String title;
    @Size(min = 10, max = 500, message = "文章内容长度限定10~500个字符")
    @NotBlank(message = "文章内容不能为空")
    private String content;
}
